package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    //新增员工实现方法
    void save(EmployeeDTO employeeDTO);
    //员工分页查询实现方法
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);
    //员工禁用和启用功能
    void startOrStop(Integer status, Long id);
    //员工回显
    Employee selectOneEmployee(Long id);
    //员工修改
    void updateOneEmployee(EmployeeDTO employeeDTO);
}
